<template>
	<view>
		<custom fixed="fixed" mode="2" title="公告" border="0.5px solid rgba(0,0,0,0.1)"></custom>



		<view v-if="info" style="padding:30rpx;">


			<view class="fs-36 color-333333 mt-20">{{info.noticeTitle}}</view>

			<view class="flex flex-y-center mt-20">
				<view class="fs-24 color">发个信</view>
				<view class="fs-24 color-999999 ml-20">{{info.time}}</view>
			</view>

			<view class="mt-40">
				<view class="detail" style="white-space: pre-line;">
					<jyf-parser :html="detail"></jyf-parser>
				</view>
			</view>

		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: '',
				id:'',
				info:''
			};
		},
		onLoad(e) {
			if(e.id) {
				this.id = e.id
			}
			this.get_info()
		},
		methods: {
			get_info() {
				this.request({
					url:'/sysNotices/getSysNoticesContent',
					data: {
						id: this.id
					}
				}).then(res => {
					if(res.status != 200) return 
					this.info = res.data
					this.info.time = this.dateFormat('YY-mm-dd HH:MM', new Date(this.info.createTime));
					this.detail = this.info.noticeContent
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FFFFFF;
	}
</style>
